package com.itheima.pojo;

import javax.persistence.*;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;
import java.util.List;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_picture_sort" )
public class PictureSort  implements Serializable {

	private static final long serialVersionUID =  1267569559865974149L;

	/**
	 * 唯一uid
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 分类图片uid
	 */
   	@Column(name = "file_uid" )
	private String fileUid;

	/**
	 * 分类名
	 */
   	@Column(name = "name" )
	private String name;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

   	@Column(name = "parent_uid" )
	private String parentUid;

	/**
	 * 排序字段，越大越靠前
	 */
   	@Column(name = "sort" )
	private Long sort;

	/**
	 * 是否显示，1：是，0，否
	 */
   	@Column(name = "is_show" )
	private Integer isShow;

	/**
	 * 图片路径集合
	 */
	@Transient //数据库不存在的字段需要添加此注解
	private List<String> photoList;
}
